package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.ScenicReviews;
import cn.wolfcode.luowowo.article.query.ScenicReviewsQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author Riven
 * @Date 19/12/24 21:30
 * 景点接口
 */

public interface IScenicReviewsService {


    PageInfo queryForList(ScenicReviewsQuery qo);

    /**
     * 评论数前5
     * @return
     */
    List<ScenicReviews> listTop5();

    /**
     * 热门前10
     * @return
     */
    List<ScenicReviews> listHot10();


    /**
     * 根据主键ID查询景点
     * @param id 景点ID
     * @return
     */
    ScenicReviews getById(Long id);


    /**
     * 查询内部景点
     * @param id
     * @return
     */
    List<ScenicReviews> selectSonById(Long id);

    /**
     * 查所有景点
     */
    ScenicReviews selectByScenic(Long destId);
}
